#ifndef PAGEGENERATOR_H
#define PAGEGENERATOR_H

#include <QObject>
#include <QUrl>

namespace Haha
{
class PageGeneratorPrivate;
class PageGenerator : public QObject
{
    Q_OBJECT
public:
    enum Category { Good, New };

    void setCategory(Category cat);
    Category category() const;

    static PageGenerator* instance();

public:
    QUrl previous();
    QUrl next();

private:
    Q_DISABLE_COPY(PageGenerator)
    PageGeneratorPrivate* d_ptr;
    explicit PageGenerator(QObject *parent = 0);
    ~PageGenerator();
};

} // namespace haha
#endif // PAGEGENERATOR_H
